<seed-content class="local-seed  gray-background">
  <seed-toolbar-header>
    <seed-toolbar-title>我的资料</seed-toolbar-title>
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>
  <div class="profile">
    <div class="normal-list">
      <div class="list">
        <div class="item seed-underline seed-flexbox seed-flexbox-align-center seed-right-arrow" id="avatar">
          <p>   <em class="name">头像</em><input class="input" accept="image/*" type="file" (change)="selectFileOnchanged($event)"/></p>
          <p class="icon">
            <img class="avatarImg" [src]="userObj?.iconUrl||defaulticon" alt="">
          </p>
        </div>
        <div class="item seed-underline  seed-right-arrow" (click)="editinfo('nickName')">
          <em>昵称</em>
          <span class="info">{{userObj?.nickName}}</span>
        </div>
        <div class="item seed-underline  seed-right-arrow" (click)="setGender()">
          <em>性别</em>
          <span class="info" *ngIf="userObj">{{userObj?.sex==1?'男':'女'}}</span>
        </div>
        <div class="item seed-underline  seed-right-arrow" (click)="editinfo('sign')">
          <em>签名</em>
          <span class="info text-ellipsis">{{userObj?.sign}}</span>
        </div>
        <div class="item seed-underline  seed-right-arrow" (click)="chooseCity()">
          <em>所在地</em>
          <span class="info">{{userObj?.areaProvName}}{{userObj?.areaCityName == userObj?.areaProvName? '': userObj?.areaCityName}}</span>
        </div>
      </div>
      <div class="list ionicDateItem ageSelectWarp">
        <div class="item seed-underline  seed-right-arrow">
          <em>年龄(岁)</em>
          <span class="info">{{userObj?.userAge}}</span>
          <select-list [options]="agearr" (change)="age($event)" [selected]="userObj?.userAge"></select-list>

        </div>
        <div class="item seed-underline  seed-right-arrow">
          <em>身高(cm)</em>
          <span class="info">{{userObj?.height}}</span>
          <select-list [options]="heightarr" (change)="height($event)" [selected]="userObj?.height"></select-list>
        </div>
        <div class="item  seed-right-arrow">
          <em>体重(kg)</em>
          <span class="info">{{userObj?.weight}}</span>
          <select-list [options]="weightarr" (change)="weight($event)" [selected]="userObj?.weight"></select-list>
        </div>
      </div>

    </div>
  </div>

</seed-content>
<!--选择男女-->
<div class="changesex" *ngIf="sexseed">
  <div class="sexbox">
    <p class="title">选择性别</p>
    <p class="sex" id="1" (click)="changsexnum($event)">男</p>
    <p class="sex" id="2" (click)="changsexnum($event)">女</p>
    <p class="cancel" id="0" (click)="changsexnum($event)">取消</p>
  </div>

</div>


